using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 新增比赛淘汰赛轮次dto
    /// </summary>
    public class GameKnockoutRoundsAddDto
    {
        /// <summary>
        /// 比赛ID
        /// </summary>
        [Required(ErrorMessage = "比赛ID必填")]
        public Guid GameId { get; set; }

        /// <summary>
        /// 对阵类型，1单打、2双打、3男单、4女单、5男双、6女双、7混双
        /// </summary>
        [Required(ErrorMessage = "对阵类型，1单打、2双打、3男单、4女单、5男双、6女双、7混双必填")]
        public int VersusType { get; set; }

        /// <summary>
        /// 轮次名称
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "轮次名称必填")]
        [StringLength(50, ErrorMessage = "轮次名称不能超过50个字符")]
        public string Name { get; set; }

        /// <summary>
        /// 当前轮次队伍数量
        /// </summary>
        [Required(ErrorMessage = "当前轮次队伍数量必填")]
        public int KnockoutCount { get; set; }

        /// <summary>
        /// 是否有附加赛
        /// </summary>
        [Required(ErrorMessage = "是否有附加赛必填")]
        public bool IsHaveExtra { get; set; }
    }
}
